﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DAL;
using Model;

namespace BLL
{
    /// <summary>
    /// 图书逻辑类
    /// </summary>
    public class BookBiz
    {
        private BookService bs = new BookService();
        public List<BookInfo> GetAllBook()
        {
            List<BookInfo> list = bs.QueryAllBook();
            //修改:2017-5-26 读书日，电子科大的书籍降价5折
            foreach (BookInfo item in list)
            {
                if (item.Publisher == "电子科大出版社")
                {
                    item.BookPrice *= 0.5;
                }
            }
            return list;
        }
    }
}
